﻿namespace Cos.Core.Attributes
{
    using System;

    using Microsoft.Practices.Unity.InterceptionExtension;

    public class InterceptorErrorContextEventArg : InterceptorExecutingContextEventArg
    {
        private readonly Exception error;

        public InterceptorErrorContextEventArg(IMethodInvocation input, Exception error)
            : base(input)
        {
            this.error = error;
        }

        public Exception Error
        {
            get { return this.error; }
        }
    }
}
